0cc75496da609f36b76672dfb6019c2f3d15cded
[git-annex.git] /
1 [[!comment format=mdwn
2  username="rinomizu5@5ead4c82685c65d7717dbd5591b80425036ae9e3"
3  nickname="rinomizu5"
4  avatar="http://cdn.libravatar.org/avatar/62478823018c68821064febcda7e5d4f"
5  subject="Additional Questions: git annex copy failed"
6  date="2022-08-08T10:31:04Z"
7  content="""
8 Thanks for the advice, joey.  
9  
10 I understand that the URL in the browser bar needs to be set to remote.  
11 Then, after modifying the remote URL, I am trying to sync the contents of the git annex file to GIN using the https protocol.  
12 But git annex copy command failed.  
13 <pre>(base) <font color=\"#8AE234\"><b>mizuguchi@ubuntu</b></font>:<font color=\"#729FCF\"><b>~/https</b></font>$ git annex copy --to=origin test2.txt
14 copy test2.txt (not found) failed
15 copy: 1 failed
16 </pre>  
17 I checked the origin remote has annex-uuid, and it's the same as uuid of [annex] in https://gin.g-node.org/ivis-mizuguchi/https/config.   
18 I would like to know why git annex cannot find test2.txt.  
19
20 ### The version of the tool used in my environment is below.  
21 - git version 2.24.0  
22 - git-annex version: 8.20211123+git12-g02e3756bd-1~ndall+1  
23
24 ### The repository in GIN
25 [https://gin.g-node.org/ivis-mizuguchi/https](https://gin.g-node.org/ivis-mizuguchi/https)
26
27 ### I have done the following process and failed.  
28 1. Create a repository named [https](https://gin.g-node.org/ivis-mizuguchi/https) in GIN with initialization.  And set the repository to public.   
29 2. git clone https://gin.g-node.org/ivis-mizuguchi/https  
30 3. cd https  
31 4. git annex init  
32 5. echo \"test\" > test.txt  
33 6. git annex add test.txt  
34 7. git commit -m \"test\"  
35 8. git annex sync origin  
36 9. echo \"test\" > test2.txt  
37 10. git annex add 'test2.txt'  
38 11. git commit -m 'test2'  
39 12. git push origin master  
40 13. git annex copy --to=origin test2.txt
41   <pre>(base) <font color=\"#8AE234\"><b>mizuguchi@ubuntu</b></font>:<font color=\"#729FCF\"><b>~/https</b></font>$ git annex copy --to=origin test2.txt
42 copy test2.txt (not found) failed
43 copy: 1 failed
44 </pre>
45 14. cat .git/config
46   <pre>(base) <font color=\"#8AE234\"><b>mizuguchi@ubuntu</b></font>:<font color=\"#729FCF\"><b>~/https</b></font>$ cat .git/config
47 [core]
48         repositoryformatversion = 0
49         filemode = true
50         bare = false
51         logallrefupdates = true
52 [remote &quot;origin&quot;]
53         url = https://gin.g-node.org/ivis-mizuguchi/https
54         fetch = +refs/heads/*:refs/remotes/origin/*
55         annex-uuid = c7a50190-9146-44de-8f1d-288551fa32e3
56 [branch &quot;master&quot;]
57         remote = origin
58         merge = refs/heads/master
59 [annex]
60         uuid = 80f0adc3-3144-4bba-a288-09a9ab009cef
61         version = 8
62 [filter &quot;annex&quot;]
63         smudge = git-annex smudge -- %f
64         clean = git-annex smudge --clean -- %f
65 </pre>
66
67 Any advice would be appreciated.  
68 Sincerely,   
69 Rino Mizuguchi
70
71
72
73
74
75 """]]